﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/EHTAdmin.Master" AutoEventWireup="true" CodeBehind="EHTMenus.aspx.cs" Inherits="EHTWebsiteProject.Administrator.EHTMenus" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MenuModulContent" runat="server">
     <div class="MenuSub-Left" >
        <table>
            <tr>
                <td> <img alt="" src="../images/EHTgiaodien/icon-48-menumgr.png" width="48px" height="48px" /></td>               
                <td><asp:Label ID="lbMenus" runat="server" Text="Quản lý menu " ></asp:Label></td>                
            </tr>
        </table>           
    </div>
    <div class="MenuSub-Right" align="right">
        <table style="height:60px">
            <tr>                                             
                <td valign="middle">
                    <div class="add-edit-del">  
                            <asp:ImageButton ID="ImgDel" ImageUrl="~/images/EHTgiaodien/icon-32-delete.png" 
                                runat="server" width="32px" height="32px" CssClass="imagboder" 
                                OnClientClick="return confirm('Are you sure you want to delete?');" 
                                onclick="ImgDel_Click" />                      
                            <br />
                            <asp:Label ID="lbDel" runat="server" Text="Xóa"></asp:Label>                       
                    </div>
                </td>

                <td valign="middle">
                    <div class="add-edit-del"> 
                            <asp:ImageButton ID="ImgEdit" ImageUrl="~/images/EHTgiaodien/icon-32-edit.png" 
                                runat="server" width="32px" height="32px" CssClass="imagboder" 
                                onclick="ImgEdit_Click" />  <br />                                                                      
                            <asp:Label ID="lbEdit" runat="server" Text="Sửa"></asp:Label>                       
                    </div>
                </td>
                <td valign="middle">
                    <div class="add-edit-del">
                        <a href="EHTMenusUI.aspx">
                            <img alt="" src="../images/EHTgiaodien/icon-32-new.png" width="32px" height="32px" class="imagboder" /><br />
                            <asp:Label ID="lbAddNew" runat="server" Text="Thêm mới"></asp:Label>
                        </a>
                    </div>
                </td>

                 <td valign="middle">
                    <div class="add-edit-del">                      
                            <img alt="" src="../images/EHTgiaodien/icon-32-help.png" width="32px" height="32px" class="imagboder" /><br />
                            <asp:Label ID="lbHelp" runat="server" Text="Trợ giúp"></asp:Label>                        
                    </div>
                </td>                
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
    <asp:Literal ID="ltrErorr" runat="server"></asp:Literal>
    <div style="padding-top:10px;">
        <asp:Panel ID="pnMenu" runat="server">
            <asp:Repeater ID="rpDanhMucMenu" runat="server" >           
        <HeaderTemplate>
            <table ID="table" border="0" cellpadding="0" cellspacing="0" >
                 <thead>
                    <tr>
                                     <th>
                                        <asp:CheckBox ID="ckAll" runat="server" AutoPostBack="true" OnCheckedChanged="CheckAll" />
                                    </th>                        
                                   
                                    <th>
                                        <asp:Label ID="lbID" runat="server" Text="STT"></asp:Label>
                                    </th>
                                    <th>
                                        <asp:Label ID="lbTieuDe" runat="server" Text=" Tiêu đề"></asp:Label>                            
                                    </th>
                                    <th>
                                        <asp:Label ID="lbMota" runat="server" Text=" Mô tả "></asp:Label>                             
                                    </th>
                                    <th>
                                        <asp:Label ID="lbMenuCon" runat="server" Text=" Menu con "></asp:Label>                             
                                    </th>                                                                                                                    
                    </tr>
                 </thead>
                 <tbody>            
        </HeaderTemplate>
        <ItemTemplate>
                 <tr>
                        <td>
                            <asp:CheckBox ID="ckMenu"  runat="server" />
                            <asp:Label ID="lbDelID" runat="server" Visible="false" Text='<%#Eval("ID")%>'></asp:Label>
                        </td>
                        <td>
                            <%#Eval("IndexId") %>
                        </td>
                        <td>
                           <a href='EHTMenusUI.aspx?ID=<%#Eval("ID")%>' class="linkedit">
                             <%#Eval("TitleOrder")%>
                           </a>
                        </td>
                        <td>
                            <%#Eval("Description")%>
                        </td>
                        <td>
                           <a href='EHTMenusSub.aspx?ID=<%#Eval("ID")%>' style="text-decoration:none">
                            <img alt="" src="../images/EHTgiaodien/mainmenu.png" style="border:none"/>
                           </a>
                        </td>                        
                    </tr>
        </ItemTemplate>
        <FooterTemplate>
                </tbody>
             </table>
        </FooterTemplate>
    </asp:Repeater>
        </asp:Panel>

        <asp:Panel ID="pnMenuOther" runat="server">
            <asp:Repeater ID="rpMenuOther" runat="server" >           
        <HeaderTemplate>
            <table ID="table" border="0" cellpadding="0" cellspacing="0" >
                 <thead>
                    <tr>
                                     <th>
                                        <asp:CheckBox ID="ckAll" runat="server" AutoPostBack="true" OnCheckedChanged="CheckAll" />
                                    </th>
                                      
                                    <th>
                                        <asp:Label ID="Label1" runat="server" Text="Number Order"></asp:Label>
                                    </th>
                                    <th>
                                        <asp:Label ID="Label2" runat="server" Text=" Title"></asp:Label>                            
                                    </th>
                                    <th>
                                        <asp:Label ID="Label3" runat="server" Text=" Description "></asp:Label>                             
                                    </th>
                                    <th>
                                        <asp:Label ID="Label4" runat="server" Text=" Sub Menu "></asp:Label>                             
                                    </th>                                                      
                                                                                
                    </tr>
                 </thead>
                 <tbody>            
        </HeaderTemplate>
        <ItemTemplate>
                 <tr>
                        <td>
                            <asp:CheckBox ID="ckMenu"  runat="server" />
                            <asp:Label ID="lbDelID" runat="server" Visible="false" Text='<%#Eval("ID")%>'></asp:Label>
                        </td>
                        <td>
                            <%#Eval("IndexId") %>
                        </td>
                        <td>
                           <a href='EHTMenusUI.aspx?ID=<%#Eval("ID")%>' class="linkedit">
                             <%#Eval("TitleOrder")%>
                           </a>
                        </td>
                        <td>
                            <%#Eval("Description")%>
                        </td>
                        <td>
                           <a href='EHTMenusSub.aspx?ID=<%#Eval("ID")%>' style="text-decoration:none">
                            <img alt="" src="../images/EHTgiaodien/mainmenu.png" style="border:none"/>
                           </a>
                        </td>                        
                    </tr>
        </ItemTemplate>
        <FooterTemplate>
                </tbody>
             </table>
        </FooterTemplate>
    </asp:Repeater>
        </asp:Panel>
    </div>
    

</asp:Content>
